package com.hsogoo.ultraman.model;

import com.hsogoo.ultraman.Config;
import com.hsogoo.ultraman.enums.ConfigChangeType;

import lombok.Data;
import lombok.ToString;

/**
 * Created by za-huangsaigang on 2018/9/13.
 */
@Data
@ToString
public class ConfigChange {
    private final String namespace;
    private final String propertyName;
    private String oldValue;
    private String newValue;
    private ConfigChangeType changeType;

    public ConfigChange(String namespace, String propertyName, String oldValue, String newValue, ConfigChangeType changeType) {
        this.namespace = namespace;
        this.propertyName = propertyName;
        this.oldValue = oldValue;
        this.newValue = newValue;
        this.changeType = changeType;
    }

}
